package com.yunshipei.model;

import com.google.gson.annotations.SerializedName;

import java.io.Serializable;
import java.util.List;

public class ManagedSingleSignOn implements Serializable {

    @SerializedName("SingleSignOn")
    public String singleSignOn;
    @SerializedName("sendTokenPosition")
    public String sendTokenPosition;
    @SerializedName("cookie")
    public Cookie cookie;
    @SerializedName("urls")
    public List<SSOToken> ssoTokens;
    @SerializedName("interval")
    public int interval = -2;

    public static class SSOToken implements Serializable {
        @SerializedName("name")
        public String name;
        @SerializedName("address")
        public String address;
        @SerializedName("parameter")
        public String parameters;
    }

    public static class Cookie implements Serializable {
        @SerializedName("maxAge")
        public long maxAge;
        @SerializedName("secure")
        public boolean secure;
        @SerializedName("httpOnly")
        public boolean httpOnly;
        @SerializedName("path")
        public String path;
        @SerializedName("domain")
        public String domain;
        @SerializedName("name")
        public String name;
    }
}
